package com.allwees.bs.core.model.order.entity;

import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@MappedSuperclass
public class OrderReviewModel extends BaseEntity implements Serializable {
    @Column(length = 64)
    private String userUuid;

    @Column(length = 64)
    private String orderUuid;

    /** 评分 1到5 */
    private Integer rating = 5;

    //留言内容
    @Column(name = "text", columnDefinition = "text")
    private String text;
}
